package com.starlight.easybuyprictice.mapper;

import com.starlight.easybuyprictice.entity.MsGoodsCat;
import com.starlight.easybuyprictice.entity.MsMessage;
import com.starlight.easybuyprictice.entity.brief.NestedCategory;


import java.util.List;

/**
 * @Author yfy2001
 * @date 2022/11/29 12:40
 */

public interface GoodsCategoryMapper {
    List<MsGoodsCat> findAll();
    MsGoodsCat findByName(String name);
    int save(MsGoodsCat category);
    int modify(MsGoodsCat category);
    int update(MsGoodsCat category);
    List<NestedCategory> findNests();
    List<NestedCategory> findParents();
    int deleteById(int catId);
    List<MsGoodsCat> findAllChildrenCategory();

    int insertNewCat(MsGoodsCat msGoodsCat);


}
